<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * 前16位为错误类型，后16位为错误码
 */
class ErrorDef
{    
    // COMMON
    const OK = 0x00000000;
    const COMMON_ERROR_PARAM = 0x00000001;
    const COMMON_ERROR_SYS = 0x00000002;
    const COMMON_ERROR_UNKNOWN = 0x00000003;
    const COMMON_ERROR_EXIST = 0x00000004;
    const COMMON_ERROR_NOT_EXIST = 0x00000005;
    const COMMON_ERROR_INVOKE = 0x00000006;
    
    // DB
    const DB_MORE_THAN_ONE = 0x00010000;    
    const DB_ERROR_CONDS = 0x00010001;
    
    // USER
    const USER_ERROR_PWD = 0x00020000;
    
    // VERIFY
    const VERIFY_ERROR_CODE = 0x00030000;
    const VERIFY_ERROR_VERIFIED = 0x00030001;
}

